/*     */ package com.zimbra.cs.filter;
/*     */ 
/*     */ import com.zimbra.common.util.Log;
/*     */ import com.zimbra.common.util.ZimbraLog;
/*     */ import com.zimbra.cs.filter.jsieve.AddressBookTest;
/*     */ import com.zimbra.cs.filter.jsieve.AttachmentTest;
/*     */ import com.zimbra.cs.filter.jsieve.BodyTest;
/*     */ import com.zimbra.cs.filter.jsieve.BulkTest;
/*     */ import com.zimbra.cs.filter.jsieve.ContactRankingTest;
/*     */ import com.zimbra.cs.filter.jsieve.ConversationTest;
/*     */ import com.zimbra.cs.filter.jsieve.CurrentDayOfWeekTest;
/*     */ import com.zimbra.cs.filter.jsieve.CurrentTimeTest;
/*     */ import com.zimbra.cs.filter.jsieve.DateTest;
/*     */ import com.zimbra.cs.filter.jsieve.DisabledIf;
/*     */ import com.zimbra.cs.filter.jsieve.Discard;
/*     */ import com.zimbra.cs.filter.jsieve.FacebookTest;
/*     */ import com.zimbra.cs.filter.jsieve.Flag;
/*     */ import com.zimbra.cs.filter.jsieve.FlaggedTest;
/*     */ import com.zimbra.cs.filter.jsieve.ImportanceTest;
/*     */ import com.zimbra.cs.filter.jsieve.InviteTest;
/*     */ import com.zimbra.cs.filter.jsieve.LinkedInTest;
/*     */ import com.zimbra.cs.filter.jsieve.MeTest;
/*     */ import com.zimbra.cs.filter.jsieve.MimeHeaderTest;
/*     */ import com.zimbra.cs.filter.jsieve.Notify;
/*     */ import com.zimbra.cs.filter.jsieve.Reply;
/*     */ import com.zimbra.cs.filter.jsieve.SocialcastTest;
/*     */ import com.zimbra.cs.filter.jsieve.TwitterTest;
/*     */ import java.util.Collections;
/*     */ import java.util.HashMap;
/*     */ import java.util.Map;
/*     */ 
/*     */ public class JsieveConfigMapHandler
/*     */ {
/*  34 */   private static final Map<String, String> mCommandMap = ;
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*  39 */   private static final Map<String, String> mTestMap = createDefaultTestMap();
/*     */   
/*     */   private static Map<String, String> createDefaultCommandMap()
/*     */   {
/*  43 */     Map<String, String> mCommandMap = Collections.synchronizedMap(new HashMap());
/*     */     
/*  45 */     mCommandMap.put("disabled_if", DisabledIf.class.getName());
/*  46 */     mCommandMap.put("tag", com.zimbra.cs.filter.jsieve.Tag.class.getName());
/*  47 */     mCommandMap.put("flag", Flag.class.getName());
/*  48 */     mCommandMap.put("reply", Reply.class.getName());
/*  49 */     mCommandMap.put("notify", Notify.class.getName());
/*  50 */     mCommandMap.put("discard", Discard.class.getName());
/*     */     
/*  52 */     return mCommandMap;
/*     */   }
/*     */   
/*     */   private static Map<String, String> createDefaultTestMap()
/*     */   {
/*  57 */     Map<String, String> mTestMap = Collections.synchronizedMap(new HashMap());
/*     */     
/*  59 */     mTestMap.put("date", DateTest.class.getName());
/*  60 */     mTestMap.put("body", BodyTest.class.getName());
/*  61 */     mTestMap.put("attachment", AttachmentTest.class.getName());
/*  62 */     mTestMap.put("addressbook", AddressBookTest.class.getName());
/*  63 */     mTestMap.put("contact_ranking", ContactRankingTest.class.getName());
/*  64 */     mTestMap.put("me", MeTest.class.getName());
/*  65 */     mTestMap.put("invite", InviteTest.class.getName());
/*  66 */     mTestMap.put("mime_header", MimeHeaderTest.class.getName());
/*  67 */     mTestMap.put("current_time", CurrentTimeTest.class.getName());
/*  68 */     mTestMap.put("current_day_of_week", CurrentDayOfWeekTest.class.getName());
/*  69 */     mTestMap.put("conversation", ConversationTest.class.getName());
/*  70 */     mTestMap.put("facebook", FacebookTest.class.getName());
/*  71 */     mTestMap.put("linkedin", LinkedInTest.class.getName());
/*  72 */     mTestMap.put("socialcast", SocialcastTest.class.getName());
/*  73 */     mTestMap.put("twitter", TwitterTest.class.getName());
/*  74 */     mTestMap.put("list", com.zimbra.cs.filter.jsieve.ListTest.class.getName());
/*  75 */     mTestMap.put("bulk", BulkTest.class.getName());
/*  76 */     mTestMap.put("importance", ImportanceTest.class.getName());
/*  77 */     mTestMap.put("flagged", FlaggedTest.class.getName());
/*  78 */     mTestMap.put("community_connections", com.zimbra.cs.filter.jsieve.CommunityConnectionsTest.class.getName());
/*  79 */     mTestMap.put("community_requests", com.zimbra.cs.filter.jsieve.CommunityRequestsTest.class.getName());
/*  80 */     mTestMap.put("community_content", com.zimbra.cs.filter.jsieve.CommunityContentTest.class.getName());
/*  81 */     return mTestMap;
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   public static void registerCommand(String actionName, String actionClassName)
/*     */   {
/*  91 */     String registeredClassName = (String)mCommandMap.get(actionName);
/*  92 */     if (registeredClassName != null)
/*     */     {
/*  94 */       ZimbraLog.filter.warn("action name " + actionName + " is already registered as action. registered " + registeredClassName + " is overwritten with " + actionClassName);
/*     */     }
/*     */     
/*  97 */     mCommandMap.put(actionName, actionClassName);
/*     */   }
/*     */   
/*     */   public static Map<String, String> getCommandMap() {
/* 101 */     return mCommandMap;
/*     */   }
/*     */   
/*     */   public static Map<String, String> getTestMap() {
/* 105 */     return mTestMap;
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/filter/JsieveConfigMapHandler.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */